<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="/css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>

<div th:fragment="order1Field">
    <table class="table table-bordered">
        <thead>
        <tr>
            <td>orderId</td>
            <th>username</th>
            <th>orderDate</th>
            <th>shipAddress1</th>
            <td>shipAddress2</td>
            <td>shipCity</td>
            <th>shipState</th>
            <th>shipZip</th>
            <th>shipCountry</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="order:${orderList}">
            <td> <a th:href="@{'viewShowOrder?orderId='+${order.orderId}}" th:text="${order.orderId}">orderId</a></td>
            <td th:text="${order.username}">username</td>
            <td th:text="${order.orderDate}">orderDate</td>
            <td th:text="${order.shipAddress1}">shipAddress1</td>
            <td th:text="${order.shipAddress2}">shipAddress2</td>
            <td th:text="${order.shipCity}">shipCity</td>
            <td th:text="${order.shipState}">shipState</td>
            <td th:text="${order.shipZip}">shipZip</td>
            <td th:text="${order.shipCountry}">shipCountry</td>
            <td>
                <button class="btn btn-default btn-xs btn-info" onClick="location.href='#'">修改</button>
<!--                <button class="btn btn-default btn-xs btn-danger btn-primary" onClick="location.href='#'">删除</button>-->
                <!--弹出框-->
            </td>
        </tr>
        </tbody>
    </table>

</div>
</body>
</html>